﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001DA RID: 474
	public class TDb2GotoStmt : TCustomDb2Stmt
	{
		// Token: 0x06000FF5 RID: 4085 RVA: 0x0030C653 File Offset: 0x0030A853
		public TDb2GotoStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2gotostmt;
		}

		// Token: 0x06000FF6 RID: 4086 RVA: 0x0030C667 File Offset: 0x0030A867
		internal override void buildsql()
		{
		}

		// Token: 0x06000FF7 RID: 4087 RVA: 0x0030C669 File Offset: 0x0030A869
		internal override void clear()
		{
		}

		// Token: 0x06000FF8 RID: 4088 RVA: 0x0030C66B File Offset: 0x0030A86B
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000FF9 RID: 4089 RVA: 0x0030C672 File Offset: 0x0030A872
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x170002F9 RID: 761
		// (get) Token: 0x06000FFA RID: 4090 RVA: 0x0030C674 File Offset: 0x0030A874
		public override TObjectName LabelName
		{
			get
			{
				return this.labelName;
			}
		}

		// Token: 0x06000FFB RID: 4091 RVA: 0x0030C67C File Offset: 0x0030A87C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TStubStmtSqlNode tstubStmtSqlNode = (TStubStmtSqlNode)this.rootNode;
			this.labelName = tstubStmtSqlNode.ObjectName;
			return 0;
		}

		// Token: 0x06000FFC RID: 4092 RVA: 0x0030C6B4 File Offset: 0x0030A8B4
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000FFD RID: 4093 RVA: 0x0030C6C4 File Offset: 0x0030A8C4
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001388 RID: 5000
		private TObjectName labelName;
	}
}
